package com.xjl.javacore.code.throwable;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.util.StringUtils;

/**
 *
 * 自定义错误代码封装，分布式环境下，要把公共的错误单独放到一个common工程里面
 *
 * @author xiaojinlu1990@163.com
 * date 2020-01-16
 */
@Data
@Setter
@Getter
@ToString
public class RunTimeExceptionExample extends RuntimeException {

    protected String resultCode;

    protected String message;

    public RunTimeExceptionExample(String resultCode,String message) {
        super(message);
        this.resultCode = resultCode;
        this.message = message;
    }

}
